<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>c2.2</title>
    <style ref="../rs/css/bootstrap.css"></style>
    <link rel="stylesheet" href="../rs/css/bootstrap.css">
    <link rel="stylesheet" href="../rs/css/bootstrap-theme.css">

    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="../rs/js/bootstrap.js"></script>
    <style type="text/css">
        .row >div {
            background: #b9def0;
        }
    </style>
</head>
<body>

<div class="container">
    <div class="row">

        <div class="alert">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <strong>警告！</strong>您输入的项目不合法
        </div>
    </div>

    <div class="row">
        <div class="btn-group">
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                我的书籍<span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a href="#">JavaScript 编程精解</a> </li>
                <li><a href="#">JavaScript 设计模式</a> </li>
                <li><a href="#">JavaScript 启示录</a> </li>
                <li class="divider"></li>
                <li><a href="#">深入理解bootstrap3</a> </li>
            </ul>
        </div>
    </div>

    <div class="row">
        <ul class="nav nav-tabs" id="myTab">
            <li class="active"><a data-toggle="tab" href="#home">首页</a> </li>
            <li class=""><a data-toggle="tab" href="#profile">个人资料</a> </li>
            <li class="dropdown">
                <!-- 单击我的书籍，弹出下拉菜单 -->
                <a data-toggle="dropdown" href="#" class="dropdown-toggle">我的书籍<b class="caret"></b> </a>
                <ul class="dropdown-menu">
                    <li><a data-toggle="tab" href="#dropdown1">JavaScript 编程精解</a> </li>
                    <li><a data-toggle="tab" href="#dropdown2">JavaScript 设计模式</a> </li>
                    <li><a data-toggle="tab" href="#dropdown3">JavaScript 启示录</a> </li>
                    <li><a data-toggle="tab" href="#dropdown4">深入理解bootstrap</a> </li>
                </ul>
            </li>
        </ul>
        <div class="tab-content" id="myTabContent">
            <div id="home" class="tab-pane fade active in"><p>点击"首页"时显示该区域</p></div>
            <div id="profile" class="tab-pane fade"><p>点击"个人资料"时显示该区域</p></div>
            <div id="dropdown1" class="tab-pane fade"><p>点击"编程精解"时显示该区域</p></div>
            <div id="dropdown2" class="tab-pane fade"><p>点击"设计模式"时显示该区域</p></div>
            <div id="dropdown3" class="tab-pane fade"><p>点击"启示录"时显示该区域</p></div>
            <div id="dropdown4" class="tab-pane fade"><p>点击"bootstrap"时显示该区域</p></div>

        </div>
    </div>
</div>

</body>
</html>